package com.whsxt.service;

import com.github.pagehelper.PageInfo;
import com.whsxt.domain.Customer;
import com.whsxt.dto.CustomerDto;

import java.util.List;

public interface CustomerService {

    /**
     * 通过条件获取分页数据
     * @param customerDto
     * @return
     */
    PageInfo<Customer> findByPage(CustomerDto customerDto);

    /**
     * 新增客户数据
     * @param customerDto
     * @return
     */
    boolean save(CustomerDto customerDto);

    /**
     * 通过id集合删除数据
     * @param ids
     * @return
     */
    boolean batchRemove(List<Integer> ids);

    /**
     * 修改一位客户的数据
     * @param customerDto
     * @return
     */
    boolean update(CustomerDto customerDto);

    /**
     * 获取客户的集合数据
     * @return
     */
    List<Customer> selectAll();
}
